package com.yxh.base;



import java.io.Serializable;
import java.util.List;
import java.util.Map;

@SuppressWarnings("serial")
public class PageEntity<T extends Object> implements Serializable {

	
	private Page page;

	private T record;
	
	private List<T> items;
	
	private Map<String, Object> map;
	
	public PageEntity(){
		
	}
	
	public PageEntity(Page page,T record){
		this.page=page;
		this.setRecord(record);
	}
	
	public PageEntity(Page page,T record,Map<String, Object> map){
		this.page=page;
		this.setRecord(record);
		this.setMap(map);
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public T getRecord() {
		return record;
	}

	public void setRecord(T record) {
		this.record = record;
	}

	public List<T> getItems() {
		return items;
	}

	public void setItems(List<T> items) {
		this.items = items;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	

}
